<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<div class="span12">
    <div class="well grey">
        <div class="well-header">
	        <ul class="nav pull-left">
	              <li class="divider-vertical"></li>
	              <li><a id="addCompany" href="javascript:void(0);">添加</a></li>
	              <li class="divider-vertical"></li>
	              <li><a id="refresh" href="javascript:void(0);">刷新</a></li>
	              <li class="divider-vertical"></li>
            </ul>
        </div>

        <div class="well-content">
        
          <!-- start -->
          <div class="table_options top_options">
              <div>
                  <span class="inline">姓名:</span>
                  <input id="name" name="name" type="text" style="width:130px;">
                  &nbsp;&nbsp;
                  <span class="inline">地址:</span>
                  <input id="address" name="address" type="text" style="width:150px;">
                 
                  <a id="search" href="javascript:Company.queryList()" class="blue btn" style="margin-left:10px;">查询</a>
              </div>
          </div>
          <!-- end   -->
          
          <div class="dataTables_wrapper">
            <table class="table table-striped table-bordered table-hover datatable">
            </table>
          </div>
        </div>
        
    </div>
</div>

<script>
  jQuery(function($){
	  Company.getTableData();
	  
	  $("#addCompany").click(function(){
	      Fitz.loadForm('company/add');
	  });
	  
	  $("#refresh").click(function(){
		  Fitz.listPage("company/list");
	  }); 
  });
</script>
